<template>
  <div class="app-container">
    <el-tabs v-model="activeName" type="card">
      <el-tab-pane label="行驶证识别" name="first">
        <vehicle-license v-if="activeName === 'first'"></vehicle-license>
      </el-tab-pane>
      <el-tab-pane label="驾驶证识别" name="second">
        <driver-license v-if="activeName === 'second'"></driver-license>
      </el-tab-pane>
      <el-tab-pane label="车牌识别" name="third">
        <license-plate v-if="activeName === 'third'"></license-plate>
      </el-tab-pane>
    </el-tabs>
  </div>
</template>

<script>
import vehicleLicense from "./vehicleLicense";
import driverLicense from "./driverlicense";
import licensePlate from "./licensePlate";

export default {
  name: "Car",
  components: {
    vehicleLicense,
    driverLicense,
    licensePlate
  },
  data() {
    return {
      activeName: 'first',
    };
  },
  created() {
  },
  methods: {}
};
</script>
<style lang="scss" scoped>
.input-with-select .el-input-group__prepend {
  background-color: #fff;

  .el-select {
    width: 10vw;
  }
}
</style>
